FROM openjdk:21-jdk

## 创建工作路径
RUN mkdir /app/config -p
RUN mkdir /app/db -p
RUN mkdir /app/images -p
WORKDIR /app

## 设置容器的字符集编码
ENV LANG C.UTF-8
ENV LANGUAGE C.UTF-8
ENV LC_ALL C.UTF-8
ENV TZ Asia/Shanghai

## 拷贝jar
COPY diaTracker.jar /app/app.jar

## 启动
CMD ["java", "-jar", "app.jar"]